package com.mofum.scope;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author developer@omuao.com
 * @since 2019-03-28
 **/
@SpringBootApplication
@ComponentScan(value = { "com.mofum.scope.controller",//控制器
                        "com.mofum.scope.service",//本地逻辑具体业务
                        "com.mofum.scope.config" })
@MapperScan("com.mofum.scope.mapper")
@EnableAutoConfiguration
@EnableAspectJAutoProxy()
public class Application {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class, args);

        //        IUserService userService = applicationContext.getBean(UserServiceImpl.class);
        //
        //        userService.initTable();
    }
}
